package com.ccb.lms.dto;

import com.ccb.lms.model.Borrow;

public class ReaderBorrowCopyBookAuthority {

	private int readerNO;
	private String readerID;
	private String readerPassword;
	private int readerAuthorityNO;
	private String readerName;
	private String readerSex;
	private String readerDepartment;
	private String readerPhoto;
	private String readerTelephone;
	private String readerMail;
	private String readerState;
	private int readerBorrowNumber;
	private int readerAppointTimes;
	private int readerLastSystemAdminNO;
	private String readerRemark;
	private byte readerRemove;
	private int borrowNO;
	private int borrowReaderNO;
	private int borrowCopyNO;
	private String borrowTime;
	private int borrowLibraryAdminNO;
	private String borrowDeadline;
	private int borrowReBorrowTimes;
	private float borrowCash;
	private String borrowState;
	private String borrowBackTime;
	private int borrowBackLibraryAdminNO;
	private int borrowLastLibraryAdminNO;
	private String borrowRemark;
	private byte borrowRemove;
	private int copyNO;
	private String copyBarCode;
	private int copyBookNO;
	private int copySerialNO;
	private String copyInTime;
	private String copySource;
	private int copyBorrowTimes;
	private int copyLastLibraryAdminNO;
	private String copyState;
	private String copyRemark;
	private byte copyRemove;
	private int bookNO;
	private String bookIndexNO;
	private String bookISBN;
	private String bookName;
	private String bookAuthor;
	private String bookTranslator;
	private String bookPress;
	private float bookPrice;
	private String bookClass;
	private String bookPublicationDate;
	private String bookKey;
	private String bookAbstract;
	private int bookBorrowTimes;
	private int bookCopyNumber;
	private int bookLastLibraryAdminNO;
	private String bookRemark;
	private byte bookRemove;
	private int authorityNO;
	private String authorityGrade;
	private int authorityBorrowNumber;
	private int authorityFirstBorrowDays;
	private int authorityReBorrowTimes;
	private int authorityReBorrowDays;
	private int authorityAppointTimes;
	private int authorityAppointDays;
	private int authorityLastSystemAdminNO;
	private String authorityRemark;
	private byte authorityRemove;


	public int getReaderNO() {
		return readerNO;
	}

	public void setReaderNO(int readerNO) {
		this.readerNO = readerNO;
	}

	public String getReaderID() {
		return readerID;
	}

	public void setReaderID(String readerID) {
		this.readerID = readerID;
	}

	public String getReaderPassword() {
		return readerPassword;
	}

	public void setReaderPassword(String readerPassword) {
		this.readerPassword = readerPassword;
	}

	public int getReaderAuthorityNO() {
		return readerAuthorityNO;
	}

	public void setReaderAuthorityNO(int readerAuthorityNO) {
		this.readerAuthorityNO = readerAuthorityNO;
	}

	public String getReaderName() {
		return readerName;
	}

	public void setReaderName(String readerName) {
		this.readerName = readerName;
	}

	public String getReaderSex() {
		return readerSex;
	}

	public void setReaderSex(String readerSex) {
		this.readerSex = readerSex;
	}

	public String getReaderDepartment() {
		return readerDepartment;
	}

	public void setReaderDepartment(String readerDepartment) {
		this.readerDepartment = readerDepartment;
	}

	public String getReaderPhoto() {
		return readerPhoto;
	}

	public void setReaderPhoto(String readerPhoto) {
		this.readerPhoto = readerPhoto;
	}

	public String getReaderTelephone() {
		return readerTelephone;
	}

	public void setReaderTelephone(String readerTelephone) {
		this.readerTelephone = readerTelephone;
	}

	public String getReaderMail() {
		return readerMail;
	}

	public void setReaderMail(String readerMail) {
		this.readerMail = readerMail;
	}

	public String getReaderState() {
		return readerState;
	}

	public void setReaderState(String readerState) {
		this.readerState = readerState;
	}

	public int getReaderBorrowNumber() {
		return readerBorrowNumber;
	}

	public void setReaderBorrowNumber(int readerBorrowNumber) {
		this.readerBorrowNumber = readerBorrowNumber;
	}

	public int getReaderAppointTimes() {
		return readerAppointTimes;
	}

	public void setReaderAppointTimes(int readerAppointTimes) {
		this.readerAppointTimes = readerAppointTimes;
	}

	public int getReaderLastSystemAdminNO() {
		return readerLastSystemAdminNO;
	}

	public void setReaderLastSystemAdminNO(int readerLastSystemAdminNO) {
		this.readerLastSystemAdminNO = readerLastSystemAdminNO;
	}

	public String getReaderRemark() {
		return readerRemark;
	}

	public void setReaderRemark(String readerRemark) {
		this.readerRemark = readerRemark;
	}

	public byte getReaderRemove() {
		return readerRemove;
	}

	public void setReaderRemove(byte readerRemove) {
		this.readerRemove = readerRemove;
	}

	public int getBorrowNO() {
		return borrowNO;
	}

	public void setBorrowNO(int borrowNO) {
		this.borrowNO = borrowNO;
	}

	public int getBorrowReaderNO() {
		return borrowReaderNO;
	}

	public void setBorrowReaderNO(int borrowReaderNO) {
		this.borrowReaderNO = borrowReaderNO;
	}

	public int getBorrowCopyNO() {
		return borrowCopyNO;
	}

	public void setBorrowCopyNO(int borrowCopyNO) {
		this.borrowCopyNO = borrowCopyNO;
	}

	public String getBorrowTime() {
		return borrowTime;
	}

	public void setBorrowTime(String borrowTime) {
		this.borrowTime = borrowTime;
	}

	public int getBorrowLibraryAdminNO() {
		return borrowLibraryAdminNO;
	}

	public void setBorrowLibraryAdminNO(int borrowLibraryAdminNO) {
		this.borrowLibraryAdminNO = borrowLibraryAdminNO;
	}

	public String getBorrowDeadline() {
		return borrowDeadline;
	}

	public void setBorrowDeadline(String borrowDeadline) {
		this.borrowDeadline = borrowDeadline;
	}

	public int getBorrowReBorrowTimes() {
		return borrowReBorrowTimes;
	}

	public void setBorrowReBorrowTimes(int borrowReBorrowTimes) {
		this.borrowReBorrowTimes = borrowReBorrowTimes;
	}

	public float getBorrowCash() {
		return borrowCash;
	}

	public void setBorrowCash(float borrowCash) {
		this.borrowCash = borrowCash;
	}

	public String getBorrowState() {
		return borrowState;
	}

	public void setBorrowState(String borrowState) {
		this.borrowState = borrowState;
	}

	public String getBorrowBackTime() {
		return borrowBackTime;
	}

	public void setBorrowBackTime(String borrowBackTime) {
		this.borrowBackTime = borrowBackTime;
	}

	public int getBorrowBackLibraryAdminNO() {
		return borrowBackLibraryAdminNO;
	}

	public void setBorrowBackLibraryAdminNO(int borrowBackLibraryAdminNO) {
		this.borrowBackLibraryAdminNO = borrowBackLibraryAdminNO;
	}

	public int getBorrowLastLibraryAdminNO() {
		return borrowLastLibraryAdminNO;
	}

	public void setBorrowLastLibraryAdminNO(int borrowLastLibraryAdminNO) {
		this.borrowLastLibraryAdminNO = borrowLastLibraryAdminNO;
	}

	public String getBorrowRemark() {
		return borrowRemark;
	}

	public void setBorrowRemark(String borrowRemark) {
		this.borrowRemark = borrowRemark;
	}

	public byte getBorrowRemove() {
		return borrowRemove;
	}

	public void setBorrowRemove(byte borrowRemove) {
		this.borrowRemove = borrowRemove;
	}

	public int getCopyNO() {
		return copyNO;
	}

	public void setCopyNO(int copyNO) {
		this.copyNO = copyNO;
	}

	public String getCopyBarCode() {
		return copyBarCode;
	}

	public void setCopyBarCode(String copyBarCode) {
		this.copyBarCode = copyBarCode;
	}

	public int getCopyBookNO() {
		return copyBookNO;
	}

	public void setCopyBookNO(int copyBookNO) {
		this.copyBookNO = copyBookNO;
	}

	public int getCopySerialNO() {
		return copySerialNO;
	}

	public void setCopySerialNO(int copySerialNO) {
		this.copySerialNO = copySerialNO;
	}

	public String getCopyInTime() {
		return copyInTime;
	}

	public void setCopyInTime(String copyInTime) {
		this.copyInTime = copyInTime;
	}

	public String getCopySource() {
		return copySource;
	}

	public void setCopySource(String copySource) {
		this.copySource = copySource;
	}

	public int getCopyBorrowTimes() {
		return copyBorrowTimes;
	}

	public void setCopyBorrowTimes(int copyBorrowTimes) {
		this.copyBorrowTimes = copyBorrowTimes;
	}

	public int getCopyLastLibraryAdminNO() {
		return copyLastLibraryAdminNO;
	}

	public void setCopyLastLibraryAdminNO(int copyLastLibraryAdminNO) {
		this.copyLastLibraryAdminNO = copyLastLibraryAdminNO;
	}

	public String getCopyState() {
		return copyState;
	}

	public void setCopyState(String copyState) {
		this.copyState = copyState;
	}

	public String getCopyRemark() {
		return copyRemark;
	}

	public void setCopyRemark(String copyRemark) {
		this.copyRemark = copyRemark;
	}

	public byte getCopyRemove() {
		return copyRemove;
	}

	public void setCopyRemove(byte copyRemove) {
		this.copyRemove = copyRemove;
	}

	public int getBookNO() {
		return bookNO;
	}

	public void setBookNO(int bookNO) {
		this.bookNO = bookNO;
	}

	public String getBookIndexNO() {
		return bookIndexNO;
	}

	public void setBookIndexNO(String bookIndexNO) {
		this.bookIndexNO = bookIndexNO;
	}

	public String getBookISBN() {
		return bookISBN;
	}

	public void setBookISBN(String bookISBN) {
		this.bookISBN = bookISBN;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getBookAuthor() {
		return bookAuthor;
	}

	public void setBookAuthor(String bookAuthor) {
		this.bookAuthor = bookAuthor;
	}

	public String getBookTranslator() {
		return bookTranslator;
	}

	public void setBookTranslator(String bookTranslator) {
		this.bookTranslator = bookTranslator;
	}

	public String getBookPress() {
		return bookPress;
	}

	public void setBookPress(String bookPress) {
		this.bookPress = bookPress;
	}

	public float getBookPrice() {
		return bookPrice;
	}

	public void setBookPrice(float bookPrice) {
		this.bookPrice = bookPrice;
	}

	public String getBookClass() {
		return bookClass;
	}

	public void setBookClass(String bookClass) {
		this.bookClass = bookClass;
	}

	public String getBookPublicationDate() {
		return bookPublicationDate;
	}

	public void setBookPublicationDate(String bookPublicationDate) {
		this.bookPublicationDate = bookPublicationDate;
	}

	public String getBookKey() {
		return bookKey;
	}

	public void setBookKey(String bookKey) {
		this.bookKey = bookKey;
	}

	public String getBookAbstract() {
		return bookAbstract;
	}

	public void setBookAbstract(String bookAbstract) {
		this.bookAbstract = bookAbstract;
	}

	public int getBookBorrowTimes() {
		return bookBorrowTimes;
	}

	public void setBookBorrowTimes(int bookBorrowTimes) {
		this.bookBorrowTimes = bookBorrowTimes;
	}

	public int getBookCopyNumber() {
		return bookCopyNumber;
	}

	public void setBookCopyNumber(int bookCopyNumber) {
		this.bookCopyNumber = bookCopyNumber;
	}

	public int getBookLastLibraryAdminNO() {
		return bookLastLibraryAdminNO;
	}

	public void setBookLastLibraryAdminNO(int bookLastLibraryAdminNO) {
		this.bookLastLibraryAdminNO = bookLastLibraryAdminNO;
	}

	public String getBookRemark() {
		return bookRemark;
	}

	public void setBookRemark(String bookRemark) {
		this.bookRemark = bookRemark;
	}

	public byte getBookRemove() {
		return bookRemove;
	}

	public void setBookRemove(byte bookRemove) {
		this.bookRemove = bookRemove;
	}

	public int getAuthorityNO() {
		return authorityNO;
	}

	public void setAuthorityNO(int authorityNO) {
		this.authorityNO = authorityNO;
	}

	public String getAuthorityGrade() {
		return authorityGrade;
	}

	public void setAuthorityGrade(String authorityGrade) {
		this.authorityGrade = authorityGrade;
	}

	public int getAuthorityBorrowNumber() {
		return authorityBorrowNumber;
	}

	public void setAuthorityBorrowNumber(int authorityBorrowNumber) {
		this.authorityBorrowNumber = authorityBorrowNumber;
	}

	public int getAuthorityFirstBorrowDays() {
		return authorityFirstBorrowDays;
	}

	public void setAuthorityFirstBorrowDays(int authorityFirstBorrowDays) {
		this.authorityFirstBorrowDays = authorityFirstBorrowDays;
	}

	public int getAuthorityReBorrowTimes() {
		return authorityReBorrowTimes;
	}

	public void setAuthorityReBorrowTimes(int authorityReBorrowTimes) {
		this.authorityReBorrowTimes = authorityReBorrowTimes;
	}

	public int getAuthorityReBorrowDays() {
		return authorityReBorrowDays;
	}

	public void setAuthorityReBorrowDays(int authorityReBorrowDays) {
		this.authorityReBorrowDays = authorityReBorrowDays;
	}

	public int getAuthorityAppointTimes() {
		return authorityAppointTimes;
	}

	public void setAuthorityAppointTimes(int authorityAppointTimes) {
		this.authorityAppointTimes = authorityAppointTimes;
	}

	public int getAuthorityAppointDays() {
		return authorityAppointDays;
	}

	public void setAuthorityAppointDays(int authorityAppointDays) {
		this.authorityAppointDays = authorityAppointDays;
	}

	public int getAuthorityLastSystemAdminNO() {
		return authorityLastSystemAdminNO;
	}

	public void setAuthorityLastSystemAdminNO(int authorityLastSystemAdminNO) {
		this.authorityLastSystemAdminNO = authorityLastSystemAdminNO;
	}

	public String getAuthorityRemark() {
		return authorityRemark;
	}

	public void setAuthorityRemark(String authorityRemark) {
		this.authorityRemark = authorityRemark;
	}

	public byte getAuthorityRemove() {
		return authorityRemove;
	}

	public void setAuthorityRemove(byte authorityRemove) {
		this.authorityRemove = authorityRemove;
	}

	public String toString() {
		
		System.out.println("++++++++++++++++++++++++++++++++++++++to string");
		StringBuffer stringBuffer = new StringBuffer();
		stringBuffer.append("readerNO:");
		stringBuffer.append(readerNO);
		stringBuffer.append("\t");
		stringBuffer.append("readerID:");
		stringBuffer.append(readerID);
		stringBuffer.append("\t");
		stringBuffer.append("readerPassword:");
		stringBuffer.append("************");//密码不在前台显示
		stringBuffer.append("\t");
		stringBuffer.append("readerAuthorityNO:");
		stringBuffer.append(readerAuthorityNO);
		stringBuffer.append("\t");
		stringBuffer.append("readerName:");
		stringBuffer.append(readerName);
		stringBuffer.append("\t");
		stringBuffer.append("readerSex:");
		stringBuffer.append(readerSex);
		stringBuffer.append("\t");
		stringBuffer.append("readerDepartment:");
		stringBuffer.append(readerDepartment);
		stringBuffer.append("\t");
		stringBuffer.append("readerPhoto:");
		stringBuffer.append(readerPhoto);
		stringBuffer.append("\t");
		stringBuffer.append("readerTelephone:");
		stringBuffer.append(readerTelephone);
		stringBuffer.append("\t");
		stringBuffer.append("readerMail:");
		stringBuffer.append(readerMail);
		stringBuffer.append("\t");
		stringBuffer.append("readerState:");
		stringBuffer.append(readerState);
		stringBuffer.append("\t");
		stringBuffer.append("readerBorrowNumber:");
		stringBuffer.append(readerBorrowNumber);
		stringBuffer.append("\t");
		stringBuffer.append("readerAppointTimes:");
		stringBuffer.append(readerAppointTimes);
		stringBuffer.append("\t");
		stringBuffer.append("readerLastSystemAdminNO:");
		stringBuffer.append(readerLastSystemAdminNO);
		stringBuffer.append("\t");
		stringBuffer.append("readerRemark:");
		stringBuffer.append(readerRemark);
		stringBuffer.append("\t");
		stringBuffer.append("readerRemove:");
		stringBuffer.append(readerRemove);
		stringBuffer.append("\t");
		stringBuffer.append("borrowNO:");
		stringBuffer.append(borrowNO);
		stringBuffer.append("\t");
		stringBuffer.append("borrowReaderNO:");
		stringBuffer.append(borrowReaderNO);
		stringBuffer.append("\t");
		stringBuffer.append("borrowCopyNO:");
		stringBuffer.append(borrowCopyNO);
		stringBuffer.append("\t");
		stringBuffer.append("borrowTime:");
		stringBuffer.append(borrowTime);
		stringBuffer.append("\t");
		stringBuffer.append("borrowLibraryAdminNO:");
		stringBuffer.append(borrowLibraryAdminNO);
		stringBuffer.append("\t");
		stringBuffer.append("borrowDeadline:");
		stringBuffer.append(borrowDeadline);
		stringBuffer.append("\t");
		stringBuffer.append("borrowReBorrowTimes:");
		stringBuffer.append(borrowReBorrowTimes);
		stringBuffer.append("\t");
		stringBuffer.append("borrowCash:");
		stringBuffer.append(borrowCash);
		stringBuffer.append("\t");
		stringBuffer.append("borrowState:");
		stringBuffer.append(borrowState);
		stringBuffer.append("\t");
		stringBuffer.append("borrowBackTime:");
		stringBuffer.append(borrowBackTime);
		stringBuffer.append("\t");
		stringBuffer.append("borrowBackLibraryAdminNO:");
		stringBuffer.append(borrowBackLibraryAdminNO);
		stringBuffer.append("\t");
		stringBuffer.append("borrowLastLibraryAdminNO:");
		stringBuffer.append(borrowLastLibraryAdminNO);
		stringBuffer.append("\t");
		stringBuffer.append("borrowRemark:");
		stringBuffer.append(borrowRemark);
		stringBuffer.append("\t");
		stringBuffer.append("borrowRemove:");
		stringBuffer.append(borrowRemove);
		stringBuffer.append("\t");
		stringBuffer.append("copyNO:");
		stringBuffer.append(copyNO);
		stringBuffer.append("\t");
		stringBuffer.append("copyBookNO:");
		stringBuffer.append(copyBookNO);
		stringBuffer.append("\t");
		stringBuffer.append("copySerialNO:");
		stringBuffer.append(copySerialNO);
		stringBuffer.append("\t");
		stringBuffer.append("copyInTime:");
		stringBuffer.append(copyInTime);
		stringBuffer.append("\t");
		stringBuffer.append("copySource:");
		stringBuffer.append(copySource);
		stringBuffer.append("\t");
		stringBuffer.append("copyBorrowTimes:");
		stringBuffer.append(copyBorrowTimes);
		stringBuffer.append("\t");
		stringBuffer.append("copyLastLibraryAdminNO:");
		stringBuffer.append(copyLastLibraryAdminNO);
		stringBuffer.append("\t");
		stringBuffer.append("copyState:");
		stringBuffer.append(copyState);
		stringBuffer.append("\t");
		stringBuffer.append("copyRemark:");
		stringBuffer.append(copyRemark);
		stringBuffer.append("\t");
		stringBuffer.append("copyRemove:");
		stringBuffer.append(copyRemove);
		stringBuffer.append("\t");
		stringBuffer.append("bookNO:");
		stringBuffer.append(bookNO);
		stringBuffer.append("\t");
		stringBuffer.append("bookIndexNO:");
		stringBuffer.append(bookIndexNO);
		stringBuffer.append("\t");
		stringBuffer.append("bookISBN:");
		stringBuffer.append(bookISBN);
		stringBuffer.append("\t");
		stringBuffer.append("bookName:");
		stringBuffer.append(bookName);
		stringBuffer.append("\t");
		stringBuffer.append("bookAuthor:");
		stringBuffer.append(bookAuthor);
		stringBuffer.append("\t");
		stringBuffer.append("bookTranslator:");
		stringBuffer.append(bookTranslator);
		stringBuffer.append("\t");
		stringBuffer.append("bookPress:");
		stringBuffer.append(bookPress);
		stringBuffer.append("\t");
		stringBuffer.append("bookPrice:");
		stringBuffer.append(bookPrice);
		stringBuffer.append("\t");
		stringBuffer.append("bookClass:");
		stringBuffer.append(bookClass);
		stringBuffer.append("\t");
		stringBuffer.append("bookPublicationDate:");
		stringBuffer.append(bookPublicationDate);
		stringBuffer.append("\t");
		stringBuffer.append("bookKey:");
		stringBuffer.append(bookKey);
		stringBuffer.append("\t");
		stringBuffer.append("bookAbstract:");
		stringBuffer.append(bookAbstract);
		stringBuffer.append("\t");
		stringBuffer.append("bookBorrowTimes:");
		stringBuffer.append(bookBorrowTimes);
		stringBuffer.append("\t");
		stringBuffer.append("bookCopyNumber:");
		stringBuffer.append(bookCopyNumber);
		stringBuffer.append("\t");
		stringBuffer.append("bookLastLibraryAdminNO:");
		stringBuffer.append(bookLastLibraryAdminNO);
		stringBuffer.append("\t");
		stringBuffer.append("bookRemark:");
		stringBuffer.append(bookRemark);
		stringBuffer.append("\t");
		stringBuffer.append("bookRemove:");
		stringBuffer.append(bookRemove);
		stringBuffer.append("\t");
		stringBuffer.append("authorityNO:");
		stringBuffer.append(authorityNO);
		stringBuffer.append("\t");
		stringBuffer.append("authorityGrade:");
		stringBuffer.append(authorityGrade);
		stringBuffer.append("\t");
		stringBuffer.append("authorityBorrowNumber:");
		stringBuffer.append(authorityBorrowNumber);
		stringBuffer.append("\t");
		stringBuffer.append("authorityFirstBorrowDays:");
		stringBuffer.append(authorityFirstBorrowDays);
		stringBuffer.append("\t");
		stringBuffer.append("authorityReBorrowTimes:");
		stringBuffer.append(authorityReBorrowTimes);
		stringBuffer.append("\t");
		stringBuffer.append("authorityReBorrowDays:");
		stringBuffer.append(authorityReBorrowDays);
		stringBuffer.append("\t");
		stringBuffer.append("authorityAppointTimes:");
		stringBuffer.append(authorityAppointTimes);
		stringBuffer.append("\t");
		stringBuffer.append("authorityAppointDays:");
		stringBuffer.append(authorityAppointDays);
		stringBuffer.append("\t");
		stringBuffer.append("authorityLastSystemAdminNO:");
		stringBuffer.append(authorityLastSystemAdminNO);
		stringBuffer.append("\t");
		stringBuffer.append("authorityRemark:");
		stringBuffer.append(authorityRemark);
		stringBuffer.append("\t");
		stringBuffer.append("authorityRemove:");
		stringBuffer.append(authorityRemove);
		stringBuffer.append("\t");

		return stringBuffer.toString();
	}
	
//	public String toString() {
//		
//		System.out.println("++++++++++++++++++++++++++++++++++++++to string");
//		StringBuffer stringBuffer = new StringBuffer();
//		stringBuffer.append("readerNO:");
//		stringBuffer.append(readerNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerID:");
//		stringBuffer.append(readerID);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerPassword:");
//		stringBuffer.append(readerPassword);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerAuthorityNO:");
//		stringBuffer.append(readerAuthorityNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerName:");
//		stringBuffer.append(readerName);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerSex:");
//		stringBuffer.append(readerSex);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerDepartment:");
//		stringBuffer.append(readerDepartment);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerPhoto:");
//		stringBuffer.append(readerPhoto);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerTelephone:");
//		stringBuffer.append(readerTelephone);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerMail:");
//		stringBuffer.append(readerMail);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerState:");
//		stringBuffer.append(readerState);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerBorrowNumber:");
//		stringBuffer.append(readerBorrowNumber);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerAppointTimes:");
//		stringBuffer.append(readerAppointTimes);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerLastSystemAdminNO:");
//		stringBuffer.append(readerLastSystemAdminNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerRemark:");
//		stringBuffer.append(readerRemark);
//		stringBuffer.append("\t");
//		stringBuffer.append("readerRemove:");
//		stringBuffer.append(readerRemove);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowNO:");
//		stringBuffer.append(borrowNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowReaderNO:");
//		stringBuffer.append(borrowReaderNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowCopyNO:");
//		stringBuffer.append(borrowCopyNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowTime:");
//		stringBuffer.append(borrowTime);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowLibraryAdminNO:");
//		stringBuffer.append(borrowLibraryAdminNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowDeadline:");
//		stringBuffer.append(borrowDeadline);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowReBorrowTimes:");
//		stringBuffer.append(borrowReBorrowTimes);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowCash:");
//		stringBuffer.append(borrowCash);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowState:");
//		stringBuffer.append(borrowState);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowBackTime:");
//		stringBuffer.append(borrowBackTime);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowBackLibraryAdminNO:");
//		stringBuffer.append(borrowBackLibraryAdminNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowLastLibraryAdminNO:");
//		stringBuffer.append(borrowLastLibraryAdminNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowRemark:");
//		stringBuffer.append(borrowRemark);
//		stringBuffer.append("\t");
//		stringBuffer.append("borrowRemove:");
//		stringBuffer.append(borrowRemove);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyNO:");
//		stringBuffer.append(copyNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyBookNO:");
//		stringBuffer.append(copyBookNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("copySerialNO:");
//		stringBuffer.append(copySerialNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyInTime:");
//		stringBuffer.append(copyInTime);
//		stringBuffer.append("\t");
//		stringBuffer.append("copySource:");
//		stringBuffer.append(copySource);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyBorrowTimes:");
//		stringBuffer.append(copyBorrowTimes);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyLastLibraryAdminNO:");
//		stringBuffer.append(copyLastLibraryAdminNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyState:");
//		stringBuffer.append(copyState);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyRemark:");
//		stringBuffer.append(copyRemark);
//		stringBuffer.append("\t");
//		stringBuffer.append("copyRemove:");
//		stringBuffer.append(copyRemove);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookNO:");
//		stringBuffer.append(bookNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookIndexNO:");
//		stringBuffer.append(bookIndexNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookISBN:");
//		stringBuffer.append(bookISBN);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookName:");
//		stringBuffer.append(bookName);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookAuthor:");
//		stringBuffer.append(bookAuthor);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookTranslator:");
//		stringBuffer.append(bookTranslator);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookPress:");
//		stringBuffer.append(bookPress);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookPrice:");
//		stringBuffer.append(bookPrice);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookClass:");
//		stringBuffer.append(bookClass);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookPublicationDate:");
//		stringBuffer.append(bookPublicationDate);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookKey:");
//		stringBuffer.append(bookKey);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookAbstract:");
//		stringBuffer.append(bookAbstract);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookBorrowTimes:");
//		stringBuffer.append(bookBorrowTimes);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookCopyNumber:");
//		stringBuffer.append(bookCopyNumber);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookLastLibraryAdminNO:");
//		stringBuffer.append(bookLastLibraryAdminNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookRemark:");
//		stringBuffer.append(bookRemark);
//		stringBuffer.append("\t");
//		stringBuffer.append("bookRemove:");
//		stringBuffer.append(bookRemove);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityNO:");
//		stringBuffer.append(authorityNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityGrade:");
//		stringBuffer.append(authorityGrade);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityBorrowNumber:");
//		stringBuffer.append(authorityBorrowNumber);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityFirstBorrowDays:");
//		stringBuffer.append(authorityFirstBorrowDays);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityReBorrowTimes:");
//		stringBuffer.append(authorityReBorrowTimes);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityReBorrowDays:");
//		stringBuffer.append(authorityReBorrowDays);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityAppointTimes:");
//		stringBuffer.append(authorityAppointTimes);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityAppointDays:");
//		stringBuffer.append(authorityAppointDays);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityLastSystemAdminNO:");
//		stringBuffer.append(authorityLastSystemAdminNO);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityRemark:");
//		stringBuffer.append(authorityRemark);
//		stringBuffer.append("\t");
//		stringBuffer.append("authorityRemove:");
//		stringBuffer.append(authorityRemove);
//		stringBuffer.append("\t");
//
//		return stringBuffer.toString();
//	}

	public static Object toType(String string) {
		// TODO Auto-generated method stub
		
		System.out.println("++++++++++++++++++++++++++++++++++++++to type");
		ReaderBorrowCopyBookAuthority readerBorrowCopyBookAuthority = new ReaderBorrowCopyBookAuthority();
		String[] columns = string.split("\t");
		for (String column : columns) {
			int beginPos = column.indexOf(":");
			String columnName = column.substring(0, beginPos);
			String columnValueString = column.substring(beginPos + 1,
					column.length());
			
			if (columnName.equalsIgnoreCase("readerNO:")) {
				readerBorrowCopyBookAuthority.setReaderNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("readerID")) {
				readerBorrowCopyBookAuthority.setReaderID(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerPassword")) {
				readerBorrowCopyBookAuthority.setReaderPassword(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerAuthorityNO")) {
				readerBorrowCopyBookAuthority.setReaderAuthorityNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("readerName")) {
				readerBorrowCopyBookAuthority.setReaderName(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerSex")) {
				readerBorrowCopyBookAuthority.setReaderSex(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerDepartment")) {
				readerBorrowCopyBookAuthority.setReaderDepartment(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerPhoto")) {
				readerBorrowCopyBookAuthority.setReaderPhoto(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerTelephone")) {
				readerBorrowCopyBookAuthority.setReaderTelephone(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerMail")) {
				readerBorrowCopyBookAuthority.setReaderMail(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerState")) {
				readerBorrowCopyBookAuthority.setReaderState(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerBorrowNumber")) {
				readerBorrowCopyBookAuthority.setReaderBorrowNumber(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("readerAppointTimes")) {
				readerBorrowCopyBookAuthority.setReaderAppointTimes(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("readerLastSystemAdminNO")) {
				readerBorrowCopyBookAuthority.setReaderLastSystemAdminNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("readerRemark")) {
				readerBorrowCopyBookAuthority.setReaderRemark(columnValueString);
			} else if (columnName.equalsIgnoreCase("readerRemove")) {
				readerBorrowCopyBookAuthority.setReaderRemove(columnValueString.equalsIgnoreCase("0") ? (byte) 0 : (byte) 1);
			} else if (columnName.equalsIgnoreCase("borrowNO")) {
				readerBorrowCopyBookAuthority.setBorrowNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowReaderNO")) {
				readerBorrowCopyBookAuthority.setBorrowReaderNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowCopyNO")) {
				readerBorrowCopyBookAuthority.setBorrowCopyNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowTime")) {
				readerBorrowCopyBookAuthority.setBorrowTime(columnValueString);
			} else if (columnName.equalsIgnoreCase("borrowLibraryAdminNO")) {
				readerBorrowCopyBookAuthority.setBorrowLibraryAdminNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowDeadline")) {
				readerBorrowCopyBookAuthority.setBorrowDeadline(columnValueString);
			} else if (columnName.equalsIgnoreCase("borrowReBorrowTimes")) {
				readerBorrowCopyBookAuthority.setBorrowReBorrowTimes(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowCash")) {
				readerBorrowCopyBookAuthority.setBorrowCash(Float.parseFloat(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowState")) {
				readerBorrowCopyBookAuthority.setBorrowState(columnValueString);
			} else if (columnName.equalsIgnoreCase("borrowBackTime")) {
				readerBorrowCopyBookAuthority.setBorrowBackTime(columnValueString);
			} else if (columnName.equalsIgnoreCase("borrowBackLibraryAdminNO")) {
				readerBorrowCopyBookAuthority.setBorrowBackLibraryAdminNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowLastLibraryAdminNO")) {
				readerBorrowCopyBookAuthority.setBorrowLastLibraryAdminNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("borrowRemark")) {
				readerBorrowCopyBookAuthority.setBorrowRemark(columnValueString);
			} else if (columnName.equalsIgnoreCase("borrowRemove")) {
				readerBorrowCopyBookAuthority.setBorrowRemove(columnValueString.equalsIgnoreCase("0") ? (byte) 0 : (byte) 1);
			} else if (columnName.equalsIgnoreCase("copyNO")) {
				readerBorrowCopyBookAuthority.setCopyNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("copyBookNO")) {
				readerBorrowCopyBookAuthority.setCopyBookNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("copySerialNO")) {
				readerBorrowCopyBookAuthority.setCopySerialNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("copyInTime")) {
				readerBorrowCopyBookAuthority.setCopyInTime(columnValueString);
			} else if (columnName.equalsIgnoreCase("copySource")) {
				readerBorrowCopyBookAuthority.setCopySource(columnValueString);
			} else if (columnName.equalsIgnoreCase("copyBorrowTimes")) {
				readerBorrowCopyBookAuthority.setCopyBorrowTimes(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("copyLastLibraryAdminNO")) {
				readerBorrowCopyBookAuthority.setCopyLastLibraryAdminNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("copyState")) {
				readerBorrowCopyBookAuthority.setCopyState(columnValueString);
			} else if (columnName.equalsIgnoreCase("copyRemark")) {
				readerBorrowCopyBookAuthority.setCopyRemark(columnValueString);
			} else if (columnName.equalsIgnoreCase("copyRemove")) {
				readerBorrowCopyBookAuthority.setCopyRemove(columnValueString.equalsIgnoreCase("0") ? (byte) 0 : (byte) 1);
			} else if (columnName.equalsIgnoreCase("bookNO")) {
				readerBorrowCopyBookAuthority.setBookNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("bookIndexNO")) {
				readerBorrowCopyBookAuthority.setBookIndexNO(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookISBN")) {
				readerBorrowCopyBookAuthority.setBookISBN(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookName")) {
				readerBorrowCopyBookAuthority.setBookName(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookAuthor")) {
				readerBorrowCopyBookAuthority.setBookAuthor(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookTranslator")) {
				readerBorrowCopyBookAuthority.setBookTranslator(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookPress")) {
				readerBorrowCopyBookAuthority.setBookPress(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookPrice")) {
				readerBorrowCopyBookAuthority.setBookPrice(Float.parseFloat(columnValueString));
			} else if (columnName.equalsIgnoreCase("bookClass")) {
				readerBorrowCopyBookAuthority.setBookClass(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookPublicationDate")) {
				readerBorrowCopyBookAuthority.setBookPublicationDate(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookKey")) {
				readerBorrowCopyBookAuthority.setBookKey(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookAbstract")) {
				readerBorrowCopyBookAuthority.setBookAbstract(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookBorrowTimes")) {
				readerBorrowCopyBookAuthority.setBookBorrowTimes(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("bookCopyNumber")) {
				readerBorrowCopyBookAuthority.setBookCopyNumber(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("bookLastLibraryAdminNO")) {
				readerBorrowCopyBookAuthority.setBookLastLibraryAdminNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("bookRemark")) {
				readerBorrowCopyBookAuthority.setBookRemark(columnValueString);
			} else if (columnName.equalsIgnoreCase("bookRemove")) {
				readerBorrowCopyBookAuthority.setBookRemove(columnValueString.equalsIgnoreCase("0") ? (byte) 0 : (byte) 1);
			} else if (columnName.equalsIgnoreCase("authorityNO")) {
				readerBorrowCopyBookAuthority.setAuthorityNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityGrade")) {
				readerBorrowCopyBookAuthority.setAuthorityGrade(columnValueString);
			} else if (columnName.equalsIgnoreCase("authorityBorrowNumber")) {
				readerBorrowCopyBookAuthority.setAuthorityBorrowNumber(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityFirstBorrowDays")) {
				readerBorrowCopyBookAuthority.setAuthorityFirstBorrowDays(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityReBorrowTimes")) {
				readerBorrowCopyBookAuthority.setAuthorityReBorrowTimes(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityReBorrowDays")) {
				readerBorrowCopyBookAuthority.setAuthorityReBorrowDays(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityAppointTimes")) {
				readerBorrowCopyBookAuthority.setAuthorityAppointTimes(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityAppointDays")) {
				readerBorrowCopyBookAuthority.setAuthorityAppointDays(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityLastSystemAdminNO")) {
				readerBorrowCopyBookAuthority.setAuthorityLastSystemAdminNO(Integer.parseInt(columnValueString));
			} else if (columnName.equalsIgnoreCase("authorityRemark")) {
				readerBorrowCopyBookAuthority.setAuthorityRemark(columnValueString);
			} else if (columnName.equalsIgnoreCase("authorityRemove")) {
				readerBorrowCopyBookAuthority.setAuthorityRemove(columnValueString.equalsIgnoreCase("0") ? (byte) 0 : (byte) 1);
			}

		}

		return readerBorrowCopyBookAuthority;
	}
	
	public Borrow getBorrow(){
		Borrow borrow = new Borrow();
		borrow.setBorrowBackLibraryAdminNO(borrowBackLibraryAdminNO);
		borrow.setBorrowBackTime(borrowBackTime);
		borrow.setBorrowCash(borrowCash);
		borrow.setBorrowCopyNO(borrowCopyNO);
		borrow.setBorrowDeadline(borrowDeadline);
		borrow.setBorrowLastLibraryAdminNO(borrowLastLibraryAdminNO);
		borrow.setBorrowLibraryAdminNO(borrowLibraryAdminNO);
		borrow.setBorrowNO(borrowNO);
		borrow.setBorrowReaderNO(borrowReaderNO);
		borrow.setBorrowReBorrowTimes(borrowReBorrowTimes);
		borrow.setBorrowRemark(borrowRemark);
		borrow.setBorrowRemove(borrowRemove);
		borrow.setBorrowState(borrowState);
		borrow.setBorrowTime(borrowTime);
		
		return borrow;
	}
}
